package com.qwt.server.utils;

import java.util.UUID;

/**
 * @author 时光
 * @date 2021/12/10 10:1728
 */

public class UuidUitl {
    /**
     * 生成带'-'的uuid
     * @return uuid字符串
     */
    public static String createUuid(){
        return UUID.randomUUID().toString();
    }

    /**
     * 生成不带'-'的uuid
     * @return uuid
     */
    public static String createUuidWithoutDelimiter(){
        return createUuid().replaceAll("-","");
    }
}
